package operation;

import book.Book;

import java.util.Scanner;

public class ModCond extends Mod{
    @Override
    public void modify(Book book) {
        System.out.println("1->已被借出   2.未被借出");
        System.out.print("请选择新的图书借阅情况：");
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        if (i == 1) {
            book.setCondition(true);
        } else {
            book.setCondition(false);
        }
        System.out.println("图书借阅情况编辑成功！");
    }
}
